home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
scanbat.zip
/
QUICK.DOC
< prev
next >
Wrap
Text File
|
1990-01-11
|
34KB
|
1,099 lines
S C A N L O N E N T E R P R I S E S
B A T C H F I L E U T I L I T I E S
Version 2.2 (SEBFU)
(C) 1989
Q U I C K R E F E R E N C E G U I D E
ADD Syntax : ADD var v
Where 'var' is any legal Dos variable, previously assigned at
least zero (set var=0) and 'v' is the amount to add to 'var', and
is in the range of 0 thru 9, with a default value of 1, if 'v' is
not specified.
BEEP Syntax : BEEP [n] [P] [K]
Where 'n' specifies the number of beeps, 'P' causes the beeps to
occur every second (instead of right away) and 'K' causes the
beeps to occur every second until a key is pressed.
BIGLTR Syntax : BIGLTR message, bc fc
Where 'message' is any 10 alpha numeric characters (ascii values
in the range of 0 thru 255), 'bc' is the background color and
'fc' the foreground color. This command will display, starting
at the current row and column, any text included in 'message', as
long as you do not exceed the 10 character limit. If 'message'
is longer than 10 characters, then 'message' will be truncated at
the tenth character. The characters so displayed will be large
characters of 9 rows by 8 columns.
CDCK Syntax : CDCK
Simply returns an errorlevel of 1 if the CD-Rom driver is
present, else returns an errorlevel of 0.
CDD Syntax : CDD n
Where 'n' is the number of directory levels to move toward the
root directory.
CGABORDR Syntax : CGABORDR n
Changes the CGA border color to the selected value of 'n'.
CHGC Syntax : CHGC sr sc er ec bc fc
Changes the screen colors, without affecting the screen
characters, for the selected screen range.
Where 'sr' is the start row, 'sc' the start column, 'er' the
ending row, 'ec' the ending column, 'bc' the background color and
'fc' the foreground color.
Page 2
Q U I C K R E F E R E N C E
SEBFU Version 2.2
CHGLOCK Syntax : CHGLOCK [C] [N] [S]
Toggles the existing state of the selected lock key, where,
C=caps lock, N=num lock and S=Scroll lock. CHGLOCK without any
parameters causes all current settings to reverse (toggle).
CHKSUM Syntax : CHKSUM fname n
Where 'fname' is the file to get a check sum for, and 'n' is an
optional checksum value to compare the calculated one with.
CK101
Returns an errorlevel of 0 if a 101 type keyboard is attached,
providing the Rom Bios supports this mode, else returns an
errorlevel of 1.
CKCLK
Returns an errorlevel of 1 if Dos reports the year 1980 else
returns an errorlevel of 0. Use this as a first guess that the
Dos time and date has been set.
CLR sr sc er ec bc fc
Clears the screen starting at the specified row 'sr' and column
'sc' thru row 'er' and column 'ec' using the specified colors
'bc' (background) and 'fc' (foreground).
CLRKEY
Clears the type ahead buffer. Prevents the user from entering
responses in advance of the questions or prompts.
COFF
Toggles the cursor off on most MGA and CGA systems, but will NOT
always work on MGA systems, and won't work on EGA or VGA systems.
COLOR bc fc
Sets the screen colors, providing that ANSI.SYS or other ANSI
driver has been installed. The colors are set to the selected
background 'bc' and foreground 'fc' color. Prior to using this,
use our DETANSI function to check for the existence of the driver
CR
Waits for the ENTER key to be pressed. All key strokes simply
cause the speaker to beep.
Page 3
Q U I C K R E F E R E N C E
SEBFU Version 2.2
CT
Toggles the cursor on or off, depending upon which state it is
currently in. CT does NOT work on all systems.
CUON
Makes the cursor visible.
CURKEY
Returns an errorlevel of 1 thru 4 depending upon which of the
four cursor control keys is pressed. The four values are :
1 = up arrow 2 = down arrow
3 = left arrow 4 = right arrow
If the enter key is pressed or escape keys are pressed, the an
errorlevel of 0 is returned, any other key press will result in
the speaker beeping.
DAYOFMO
Returns an errorlevel of 1 thru 31 for the current day of the
month as reported by Dos. Dos must have the correct time and
date for this to function properly. To determine if the Dos time
and Date are set, use our CKCLK function.
DAYOFWK [mm-dd-yy] [D]
In the functions basic format, returns an errorlevel representing
the day of week (Sunday = 1 .... Saturday = 7). In the second
format, the user specifies the date to return the day of week for
in the format 'mm-dd-yy' and finally the last format returns the
day of month, by appending the letter 'D' (upper or lower case)
after the function name.
DBLBOX sr sc er ec bc fc Pp
Draws a double line graphics box starting at row 'sr', column
'sc' and ending at row 'er' column 'ec', using the background
color 'bc' and foreground color 'fc' on page 'p' (prefixed by the
P {upper or lower case}).
DETANSI
Returns an errorlevel of 1 if an ansi device drive is installed,
a 0 if an ansi driver is not installed, or a 2 if the video mode
is graphics.
Page 4
Q U I C K R E F E R E N C E
SEBFU Version 2.2
DFREE d: [vname]
Returns an errorlevel in K bytes for bytes available on a
selected drive 'd:', or places the exact value in a selected
variable 'vname'. The selected drive letter may be upper or lower
case, and must be prefixed with the colon. Alternately, will
return an errorlevel of 0 if an incorrect drive is specified and
the variable is not specified, or a 1 if the variable is
specified and the selected drive is not available.
DLINE sr sc l bc fc p S
DLINE Pp l S
Draws a double or single line, using double or single line
graphics on the video or sends the line to the selected printer,
using length 'l', starting on row 'sr' column 'sc' (video), using
the background color 'bc' and foreground color 'fc' on page 'p'.
DLST ftype [/Ln] [/Rn] [/Bn] [/Tn] [/E list]
[/I list] [/X] [/D] [/Z]
Displays a list of files in the current directory, where :
ftype is the type of file(s) to display, and can use the Dos
wildcards (*.*, ???.???).
/Ln = Left margin of 'n' /Rn = Right margin of 'n'
/Bn = Last margin 'n' to use /Tn = First line to use 'n'
/E list = exclude list /I list = include list
/X = no extensions shown /D = show directories